Socket
Socket
Sign inDemoInstall

babel-plugin-ember-modules-api-polyfill

Package Overview
Dependencies
Maintainers
4
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-ember-modules-api-polyfill

Polyfill for Ember JS API.


Version published
Weekly downloads
193K
decreased by-20.02%
Maintainers
4
Weekly downloads
 
Created

What is babel-plugin-ember-modules-api-polyfill?

The babel-plugin-ember-modules-api-polyfill package is a Babel plugin that allows developers to use the new JavaScript module API for Ember.js. It automatically transforms the new module syntax into the older global API, making it easier to adopt modern JavaScript practices while maintaining compatibility with existing Ember.js codebases.

What are babel-plugin-ember-modules-api-polyfill's main functionalities?

Transforming new module syntax to global API

This feature allows developers to use the new ES6 module syntax for importing Ember.js components, which the plugin then transforms into the older global API syntax. This makes it easier to write modern JavaScript while ensuring compatibility with older Ember.js versions.

import Component from '@ember/component';

export default Component.extend({
  // component logic
});

Automatic polyfilling

The plugin automatically polyfills the new module API, allowing developers to use modern import statements for Ember services, components, and other modules. This reduces boilerplate and improves code readability.

import { inject as service } from '@ember/service';

export default Component.extend({
  myService: service(),
  // component logic
});

Other packages similar to babel-plugin-ember-modules-api-polyfill

Keywords

FAQs

Package last updated on 17 Mar 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc